package br.macedo.util;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class SurveyUtil {
	
	private static EntityManagerFactory entityManagerFactory;
	
	static {
	
		entityManagerFactory = Persistence.createEntityManagerFactory("mysurvey");
	}
	
	static public EntityManager getEntityManager()
	{
		return entityManagerFactory.createEntityManager();
	}

}
